package com.warm.androidstudy.common;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;

import org.jetbrains.annotations.NotNull;

/**
 * //继承AndroidViewModel，是由于里面要用context时候直接能够getApplication()
 */
public class BaseViewModel extends AndroidViewModel {
    public BaseViewModel(@NonNull @NotNull Application application) {
        super(application);
    }

    @Override
    protected void onCleared() {
        super.onCleared();
    }

}
